package com.diankangwo.factory.service.impl;

import com.diankangwo.factory.dao.TdExpressCodeMapper;
import com.diankangwo.factory.entity.TdExpressCode;
import com.diankangwo.factory.service.TdExpressCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service("TdExpressCodeServiceImpl")
public class TdExpressCodeServiceImpl implements TdExpressCodeService {

    @Autowired
    private TdExpressCodeMapper tdExpressCodeMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tdExpressCodeMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TdExpressCode record) {
        return tdExpressCodeMapper.insert(record);
    }

    @Override
    public int insertSelective(TdExpressCode record) {
        return tdExpressCodeMapper.insertSelective(record);
    }

    @Override
    public TdExpressCode selectByPrimaryKey(Integer id) {
        return tdExpressCodeMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(TdExpressCode record) {
        return tdExpressCodeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TdExpressCode record) {
        return tdExpressCodeMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<TdExpressCode> queryList() {
        return tdExpressCodeMapper.queryList();
    }
}
